<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML>
<html>
<head>
	<title>事务明细</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	
	<link href="<%= basePath %>assets/css/dpl-min.css" rel="stylesheet" type="text/css" />
	<link href="<%= basePath %>assets/css/bui-min.css" rel="stylesheet" type="text/css" />
	<link href="<%= basePath %>assets/css/page-min.css" rel="stylesheet" type="text/css" />
	
	<!-- 下面的样式，仅是为了显示代码，而不应该在项目中使用-->
	<link href="<%= basePath %>assets/css/prettify.css" rel="stylesheet" type="text/css" />
	<style type="text/css">
	.doc-content {
		padding: 30px;
	}
	
	.doc-content .panel .panel-header {
		background: #DFF0D8;
	}
	
	.doc-content .panel {
		text-align: center;
		letter-sapcing: 5px;
	}
	
	.doc-content .panel h3 {
		font-size: 20px;
	}
	
	.doc-content .panel .panel-body .table {
		width: 80%;
		margin-left: 10%;
	}
	</style>
</head>

<body>
	<div class="doc-content">
		<div class="panel ">
			<div class="panel-header">
				<h3>选填事务详细信息</h3>
			</div>
			
			<!-- 添加事务详情的表单 -->
			<div class="panel-body">
				<form action="<%= basePath %>transdetail/addTransDetail" method="post">
					<table cellspacing="0" class="table table-bordered">
						<tr>
							<!-- 填写事务明细的名称 -->
							<td align="right">事务明细</td>
							<td>
								<label>
									<input name="transDetail.tdname" class="input-normal control-text" type="text" />
								</label>
							</td>
							
							<!-- 选择事务的种类 -->
							<td align="right">事务种类</td>
							<td colspan="3">
								<select name="transDetail.ttypeid" size="1">
									<option value="-1" selected="selected">请选择</option>
									<s:iterator value="#transTypeList" var="transType">
										<option value='<s:property value="#transType.ttypeid"/>'>
											<s:property value="#transType.ttname"/>
										</option>
									</s:iterator>
								</select>
							</td>
						</tr>

						<tr>
							<!-- 选择事务类型 -->
							<td align="right">类 型</td>
							<td>
								<select name="transDetail.tclass">
									<option selected="selected" value="2">网点提交</option>
									<option value="3">网管中心提交</option>
								</select>
							</td>
							
							<!-- 服务保障部门 -->
							<td align="right">服务保障部门</td>
							<td colspan="3">
								<select name="transDetail.ensuredeptid">
									<option value="-1" selected="selected">请选择</option>
									<s:iterator value="#deptList" var="dept">
										<option value="<s:property value="#dept.id"/>">
											<s:property value="#dept.name"/>
										</option>
									</s:iterator>
								</select>
							</td>
						</tr>
						<tr>
							<!-- 服务保障级别 -->
							<td align="right">服务保障级别</td>
							<td>
								<select name="transDetail.dlevel">
									<option selected="selected" value="0">无</option>
									<option value="1">一级</option>
									<option value="2">二级</option>
								</select>
							</td>
							
							<!-- 外包商 -->
							<td align="right">涉及外包服务商</td>
							<td>
								<input name="transDetail.expackage" type="text" />
							</td>
							
							<!-- 初审时限 -->
							<td align="right">初审时限</td>
							<td>
								<select name="transDetail.examtime">
									<option selected="selected" value="0">无</option>
									<option value="1">1工时</option>
									<option value="2">2工时</option>
									<option value="3">3工时</option>
									<option value="4">4工时</option>
									<option value="5">5工时</option>
									<option value="6">6工时</option>
									<option value="24">1工作日</option>
									<option value="48">2工作日</option>
									<option value="72">3工作日</option>
								</select>
							</td>
						</tr>
						<tr>
							<!-- 服务响应时限 -->
							<td align="right">服务响应时限</td>
							<td>
								<select name="transDetail.servicetime">
									<option selected="selected" value="0">无</option>
									<option value="1">1工时</option>
									<option value="2">2工时</option>
									<option value="3">3工时</option>
									<option value="4">4工时</option>
									<option value="5">5工时</option>
									<option value="6">6工时</option>
									<option value="24">1工作日</option>
									<option value="48">2工作日</option>
									<option value="72">3工作日</option>
								</select>
							</td>
							
							<!-- 抵达现场时限 -->
							<td align="right">抵达现场时限</td>
							<td>
								<select name="transDetail.scenetime">
									<option selected="selected" value="0">无</option>
									<option value="1">1工时</option>
									<option value="2">2工时</option>
									<option value="3">3工时</option>
									<option value="4">4工时</option>
									<option value="5">5工时</option>
									<option value="6">6工时</option>
									<option value="24">1工作日</option>
									<option value="48">2工作日</option>
									<option value="72">3工作日</option>
								</select>
							</td>
							
							<!-- 服务解决时限 -->
							<td align="right">服务解决时限</td>
							<td>
								<select name="transDetail.endtime">
									<option selected="selected" value="0">无</option>
									<option value="1">1工时</option>
									<option value="2">2工时</option>
									<option value="3">3工时</option>
									<option value="4">4工时</option>
									<option value="5">5工时</option>
									<option value="6">6工时</option>
									<option value="24">1工作日</option>
									<option value="48">2工作日</option>
									<option value="72">3工作日</option>
								</select>
							</td>
						</tr>
						<tr>
							<!-- 事务备注输入框 -->
							<td align="right">事务备注</td>
							<td colspan="5">
								<textarea name="transDetail.note" cols="100" rows="4" style="width: 99%;"></textarea>
							</td>
						</tr>
						<tr>
							<!-- 表单提交、重置和返回按钮 -->
							<td colspan="6" align="center" style="text-align: center;">
								<label>
									<input type="submit" class="button button-success" value="提 交" />
										&nbsp;&nbsp; 
									<input type="reset" class="button button-info" value="重 置" /> 
										&nbsp;&nbsp; 
									<a class="button" href="<%= basePath %>transdetail/listTransDetail">
										返 回
									</a>
								</label>
							</td>
						</tr>
					</table>
				</form>
			</div>
		</div>
	</div>
<body>
</html>
